package com.tongji.admin.view
{
	import com.tongji.admin.event.BrandAdminEvent;
	import com.tongji.admin.event.GoodsTypeAdminEvent;
	import com.tongji.admin.event.TypeAdminEvent;
	
	import org.robotlegs.mvcs.Mediator;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/7/
	 */ 
	public class MainViewMediator extends Mediator
	{
		[Inject]
		private var view:MainView;
		
		override public function onRegister():void
		{
			dispatch(new GoodsTypeAdminEvent(GoodsTypeAdminEvent.GET_ALL_TYPES, null, null));
			dispatch(new BrandAdminEvent(BrandAdminEvent.GET_ALL_BRANDS));
			dispatch(new TypeAdminEvent(TypeAdminEvent.GET_ALL_TYPE));
		}
	}
}